package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户扩展信息对象 sys_user_extend
 * 
 * @author ruoyi
 * @date 2025-03-11
 */
public class SysUserExtend extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 用户类型（0管理员 1求助者 2资助者） */
    @Excel(name = "用户类型", readConverterExp = "0=管理员,1=求助者,2=资助者")
    private String userType;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String realName;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idCard;

    /** 所在地区 */
    @Excel(name = "所在地区")
    private String regionCode;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String contactPhone;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUserType(String userType) 
    {
        this.userType = userType;
    }

    public String getUserType() 
    {
        return userType;
    }

    public void setRealName(String realName) 
    {
        this.realName = realName;
    }

    public String getRealName() 
    {
        return realName;
    }

    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }

    public void setRegionCode(String regionCode) 
    {
        this.regionCode = regionCode;
    }

    public String getRegionCode() 
    {
        return regionCode;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setContactPhone(String contactPhone) 
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone() 
    {
        return contactPhone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("userType", getUserType())
            .append("realName", getRealName())
            .append("idCard", getIdCard())
            .append("regionCode", getRegionCode())
            .append("address", getAddress())
            .append("contactPhone", getContactPhone())
            .toString();
    }
}
